import request from '@/utils/request';

/**
 * GET 查询供销综合分析表
 * @pathParam apiVersion true
 * @queryParam ofYearMonth true
 * @queryParam year true
 */
export function dmAnalyticalUsingGET({ params, data }) {
  return request('report/dmAnalytical', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 供销综合分析表导出
 * @pathParam apiVersion true
 * @queryParam yearMonth true
 */
export function dmAnalyticalExportUsingGET({ params, data }) {
  return request('report/dmAnalyticalExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询城市回款系数表
 * @pathParam apiVersion true
 * @queryParam yearMonth true
 */
export function dmCityReturnCoefficientUsingGET({ params, data }) {
  return request('report/dmCityReturnCoefficient', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询投资回款分析表
 * @pathParam apiVersion true
 * @queryParam versionType true
 * @queryParam vsVersionType true
 * @queryParam yearMonth true
 */
export function dmInvestmentReturnUsingGET({ params, data }) {
  return request('report/dmInvestmentReturn', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询项目回款系数分析表
 * @pathParam apiVersion true
 * @queryParam versionType true
 * @queryParam vsVersionType true
 * @queryParam yearMonth true
 */
export function dmProjectReturnCoefficientUsingGET({ params, data }) {
  return request('report/dmProjectReturnCoefficient', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出校验
 * @pathParam apiVersion true
 * @queryParam endDate false
 * @queryParam orgIds false
 */
export function exportCheckUsingGET({ params, data }) {
  return request('report/exportCheck', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出去化率报表（重构）
 * @pathParam apiVersion true
 * @queryParam endDate false
 * @queryParam orgIds false
 */
export function exportRemovalReportUsingGET({ params, data }) {
  return request('report/exportRemovalReport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 获取事业部
 * @pathParam apiVersion true
 */
export function getDivisionUsingGET({ params, data }) {
  return request('report/getDivision', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询货值报表
 * @pathParam apiVersion true
 * @queryParam endDate false
 * @queryParam orgId false
 */
export function priceReportUsingGET({ params, data }) {
  return request('report/priceReport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出货值报表
 * @pathParam apiVersion true
 * @queryParam endDate false
 * @queryParam orgId false
 */
export function priceReportExportUsingGET({ params, data }) {
  return request('report/priceReportExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新能力版回款计划
 * @pathParam apiVersion true
 * @queryParam projectId false
 * @queryParam yearMonth true
 */
export function refreshAbilityReturnPlanUsingGET({ params, data }) {
  return request('report/refreshAbilityReturnPlan', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新城市回款系数分析表
 * @pathParam apiVersion true
 * @queryParam projectId false
 * @queryParam yearMonth true
 */
export function refreshDmCityReturnCoefficientUsingGET({ params, data }) {
  return request('report/refreshDmCityReturnCoefficient', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新投资回款分析表
 * @pathParam apiVersion true
 * @queryParam projectId false
 * @queryParam yearMonth true
 */
export function refreshDmInvestmentReturnUsingGET({ params, data }) {
  return request('report/refreshDmInvestmentReturn', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新指定时间供销分析表中项目层级及以下数据
 * @queryParam apiVersion false
 * @queryParam time false
 */
export function refreshProjectDmAnalyticalUsingGET({ params, data }) {
  return request('report/refreshProjectDmAnalytical', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新签约计划进度底表
 * @pathParam apiVersion true
 * @queryParam yearMonth true
 */
export function refreshSignPlanProgressUsingGET({ params, data }) {
  return request('report/refreshSignPlanProgress', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新供销综合分析底表
 * @pathParam apiVersion true
 * @queryParam projectId false
 * @queryParam yearMonth true
 */
export function refreshdmAnalyticalUsingGET({ params, data }) {
  return request('report/refreshdmAnalytical', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新项目回款系数分析表
 * @pathParam apiVersion true
 * @queryParam projectId false
 * @queryParam yearMonth true
 */
export function refreshdmProjectReturnCoefficientUsingGET({ params, data }) {
  return request('report/refreshdmProjectReturnCoefficient', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询去化率报表
 * @pathParam apiVersion true
 * @queryParam endDate false
 * @queryParam orgIds false
 */
export function removalReportUsingGET({ params, data }) {
  return request('report/removalReport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出去化率报表
 * @pathParam apiVersion true
 * @queryParam endDate false
 * @queryParam orgIds false
 */
export function removalReportExportUsingGET({ params, data }) {
  return request('report/removalReportExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询签约计划进度表
 * @pathParam apiVersion true
 * @queryParam endTime false
 * @queryParam name false
 * @queryParam startTime false
 * @queryParam versionStatus false
 * @queryParam yearMonth true
 */
export function signPlanProgressUsingGET({ params, data }) {
  return request('report/signPlanProgress', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 签约计划进度表导出
 * @pathParam apiVersion true
 * @queryParam yearMonth true
 */
export function signPlanProgressExportUsingGET({ params, data }) {
  return request('report/signPlanProgressExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 分页查询签约计划进度表
 * @pathParam apiVersion true
 * @queryParam current true
 * @queryParam endTime false
 * @queryParam name false
 * @queryParam pageSize true
 * @queryParam startTime false
 * @queryParam versionStatus false
 * @queryParam yearMonth true
 */
export function signPlanProgressPageUsingGET({ params, data }) {
  return request('report/signPlanProgressPage', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询回款计划进度表
 * @pathParam apiVersion true
 * @queryParam endTime false
 * @queryParam name false
 * @queryParam startTime false
 * @queryParam versionStatus false
 * @queryParam yearMonth true
 */
export function getReturnPlanProgress({ params, data }) {
  return request('report/returnPlanProgress', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动刷新符合条件的回款计划列表
 * @pathParam apiVersion true
 */
export function refreshReturnPlanProgressStageIsSale({ params, data }) {
  return request('report/refreshReturnPlanProgressStageIsSale', {
    method: 'GET',
    params,
    data,
  });
}
